package com.wings4.school.academicconfiguration

import com.wings4.security.User
import com.wings4.school.exam.ExamType
import com.wings4.school.exam.ExamTermResult
import com.wings4.school.exam.ExamTypeResult

class AcademicYear {

    String academicYearName;  //it will be the year only like 2013
    Date startTime;
    Date endTime;               //example 2013,2013-02-02,2013-12-31,dabli
    Date createdDate;
    User createdBy;
    Boolean status;
    static hasMany = [examType:ExamType,examTypeResult:ExamTypeResult,examTermResult:ExamTermResult]
    static constraints = {

    }
    static  mapping = {
        startTime(sqlType: 'date');
        endTime(sqlType: 'date');
        createdDate(sqlType: 'date');
    }
}
